<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link type="text/css" href="css/register.css" rel="stylesheet" />
<%-- <script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery.validate-1.13.1.js"></script>
<script type="text/javascript" src="js/validator.js"></script> --%>

</head>

<body>
<div style="width: 970px;height: 40px;margin-top: 10px;margin-left: 170px;" ></div> 
	<div>
		<s:if test="#session.company==null">
			<div style="margin-left: 60px;">
			<ul class="step_ul step1 clear">
				<li class="li1" id="li1">1、验证邮箱地址</li>
				<li class="li2" id="li2">2、完善商家资料</li>
				<li class="li3" id="li3">3、等待审核</li>
			</ul>
			</div>
			<form id="form1">
				<div class="w12" style="height: 70px"></div>
				<div class="inputsec" id="emailDiv">
					<ul>
						<li><label class="fl mr2">邮箱地址：</label> <input id="email"
							type="text" name="company.companyEmail" class="fl"
							placeholder="请输入邮箱地址"
						>
						</li>
						<li><a class="db fl chg send">点击获取邮箱校验码</a></li>
						<li><label class="fl mr2">校验码：</label>
								<input type="text" name="code" class="fl"
								placeholder="请输入校验码"
					     >
						</li>
						<li class="clr"><input
							type="submit" class="db fl next" value="下一步" />
						</li>
						<li class="clr"><input
							type="reset" class="db fl next" value="重            置" />
						</li>
					</ul>
				</div>
			</form>

			<form id="form2" action="company_register" method="post">
				<div id="detail" class="inputsec" style="display:none">
					<ul>
						<li><label class="fl mr2">邮箱地址：</label> <input type="text"
							name="company.companyEmail" id="detailEmail" class="fl" />
						</li>
						<li><label class="fl mr2">商家名：</label> <input type="text"
							name="company.companyName" id="name" class="fl" 
							placeholder="只为中文、数字、英文、下划线"
							/>
						</li>
						<li><label class="fl mr2">电话：</label> <input type="text"
							class="fl" name="company.companyTel" 
							placeholder="输入手机号码"
						/>
						</li>
						<li><label class="fl mr2">负责人：</label> <input type="text"
							class="fl" name="company.companyManager"
							placeholder="只为中文、数字、英文、下划线" 
							/>
						</li>
						<li><label class="fl mr2">商家地址：</label> <input type="text"
							class="fl" name="company.companyAddress" 
							placeholder="只为中文、数字、英文、下划线"
							/>
						</li>
						<li><label class="fl mr2">密码：</label> <input type="password"
							name="company.companyPassword" id="password" class="fl" 
							placeholder="长度不少于8位"
							/>
						</li>
						<li><label class="fl mr2">确认密码：</label> <input
							type="password" class="txt-m fl" name="re_password" 
							placeholder="两次密码确保一致"
							/></li>
						<li class="clr"><input
							class="db fl next" type="submit" style="margin-left: 130px;" value="注册" /></li>
						<li class="clr"><input
							class="db fl next" type="reset" style="margin-left: 130px;" value="重置" /></li>
					</ul>
				</div>
			</form>
		</s:if>

		<s:if test="#session.company!=null">
			<div style="margin-left: 60px;">
			<ul class="step_ul step3 clear">
				<li class="li1" id="li1">1、验证邮箱地址</li>
				<li class="li2" id="li2">2、完善商家资料</li>
				<li class="li3" id="li3">3、等待审核</li>
			</ul>
			</div>
			<div class="w12" style="height: 80px"></div>
			<div class="success" id="success">
				<ul>
					<li class="suc1">注册成功</li>
					<li>请等待管理员审核</li>
					<li>注册邮箱地址：<em class="mr3">${sessionScope.company.companyEmail}</em>商家名：<em>${sessionScope.company.companyName}</em>
					</li>
					<li class="suc2"><a class="db mr4 fl" href="companyCenter.jsp">商家中心</a><a class="db fl" href="E-Helper.jsp">返回主页</a>
					</li>
				</ul>
			</div>
		</s:if>
	</div>
</body>
</html>